package com.zou.commons.domain;

import com.zou.commons.constants.Constants;
import lombok.Data;

@Data
public class ReturnObject {
    private String code;//处理成功获取失败的标记：1---成功,0---失败
    private String message;//提示信息
    private Object other; // 其他信息

    public void setSuccess() {
        this.code = Constants.RETURN_OBJECT_CODE_SUCCESS;
    }

    public void setFail(String message) {
        this.code = Constants.RETURN_OBJECT_CODE_FAIL;
        this.message = message;
    }
}
